﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model_SSResourceManager;

namespace Presenter_SSResourceManager
{
    public class PresenterProfile
    {
        private readonly IViewProfile _viewProfile;
        private readonly ModelsManager _mModel;

        public PresenterProfile(IViewProfile view)
        {
            this._viewProfile = view;
            _mModel = ModelInstanse.Get();
        }

        public void FillFieldToEdit()
        {
            var userId = _viewProfile.GetUserId();
            var user = _mModel.userModel.Get(userId);
            _viewProfile.SetDataForUser(user);
        }

    }
}
